<@html.doctype />
<html>
<@html.head>
 <link rel="stylesheet" type="text/css" href="${base}/includes/styles/skins/Green/layout/css/nth_match.css" />
<link rel="stylesheet" type="text/css" href="../includes/styles/skins/Green/layout/css/layout_news.css" />
<script type="text/javascript" src="../includes/js/jsLayout/tishi.js"></script>
<script type="text/javascript">
	$(function(){
	    $("#direct_submit").click(function(){
	        var currentPage = document.getElementById("currentPage").value;
	        var patrn = /^[0-9]+$/;
	        if (!patrn.test(currentPage)) {
	            $("#direct_tip").show();
	            return false;
	        }
	        return true;
	    });
		$("#currentPage").focus(function(){
                $("#direct_tip").hide();
            });
	})
	</script>

</@html.head>
<body>

<@html.header>
</@html.header>

<@html.content>
<div id="content">
	<@html.contentplace place="大赛" />	
	<div id="news_content">	
        <div id="news_left_content">
		<#if compAppList?exists>
		<#list compAppList as compApp>
            <div class="news_box">
                <div class="news_title">
                    <div class="news_title_con">
                        <p class="title_one">
                            <a href="#">${compApp.compName}</a></p>
                        <p>
                            <a href="#">申请者：${compApp.applierName}</a> / 类型：${compApp.ptype.type}/ ${compApp.pubTime?string("yyyy-MM-dd")}</p>
                    </div>
                </div>
                <div class="news_con">
                    <div class="text_nopic">
                        <p>
						${compApp.compSummary}
                        </p>
                    </div>
                    <div class="news_con_footer">
                        <p class="more_Com">
                           <a href="${base}/match/showDetail.action?compId=${compApp.compID}">大赛详情</a>|<a href="${base}/match/toCompApply.action?compId=${compApp.compID}">申请参赛</a>|<a href="${base}/match/toSponsor.action?compId=${compApp.compID}">我要赞助</a></p>
                    </div>					
                </div>
            </div>
		</#list>
		</#if>
		<br>
			<div align="center">
				<#if (compAppPager.totalRows>0)>
				共${compAppPager.totalRows}条记录,
				        第<font color="red">${compAppPager.currentPage}</font>页/
					共<font color="red">${compAppPager.totalPages}</font>页					
					<#if compAppPager.totalPages==1>
						<a href="#" class="page_first">首页</a> 
						<a href="#" class="page_null">上一页</a>
						<a href="#" class="page_txt">下一页</a> 
						<a href="#" class="page_first">尾页</a>
					</#if>
					<#if compAppPager.currentPage==1&&compAppPager.totalPages!=1>
						<a href="#" distabled="true" class="page_first">首页</a> 
						<a href="#" distabled="true" class="page_null">上一页</a>
						<a href="${base}/match/compPub.action?pageMethod=next&currentPage=${compAppPager.currentPage}" class="page_txt">下一页</a> 
						<a href="${base}/match/compPub.action?pageMethod=last" class="page_first">尾页</a>
					</#if>					    
					<#if compAppPager.currentPage==compAppPager.totalPages&&compAppPager.totalPages!=1>
						<a href="${base}/match/compPub.action?pageMethod=first" class="page_first">首页</a> 
						<a href="${base}/match/compPub.action?pageMethod=previous&currentPage=${compAppPager.currentPage}" class="page_null">上一页</a>
						<a href="#" distabled="true" class="page_txt">下一页</a> 
						<a href="#" distabled="true" class="page_first">尾页</a>
					</#if>					    
					<#if compAppPager.currentPage!=compAppPager.totalPages&&compAppPager.currentPage!=1>
						<a href="${base}/match/compPub.action?pageMethod=first" class="page_first">首页</a> 
						<a href="${base}/match/compPub.action?pageMethod=previous&currentPage=${compAppPager.currentPage}" class="page_null">上一页</a>
						<a href="${base}/match/compPub.action?pageMethod=next&currentPage=${compAppPager.currentPage}" class="page_txt">下一页</a> 
						<a href="${base}/match/compPub.action?pageMethod=last" class="page_first">尾页</a>
					</#if>
									
					<form action="${base}/match/compPub.action" id="form" method="post"  name="form">
						跳转至
						<input name="currentPage" id="currentPage" type="text" size="3"/>页
						<input name="submit" id="direct_submit" type="submit" class="submit" value="跳转"/>
						<span id="direct_tip" class="formtips onError" style="display:none;">请输入正确数字</span>
					</form>
				</#if>
				</div>

     </div>
	  <div id="news_right_content">
        <div id="news_search">
          <form action="1.php" id="news_form">
          <input type="text" name="search"  id="search_1" placeholder="搜索新闻">
          <input type="submit" name value=" " id="search_2">
          </form>
        </div>
        
        
        <div id="news_tags">
           <div id="tags_title">
             <p>热门标签</p>
           </div>
           <div id="tags_con">
            
                    <ul>
                        <li>
                                                        <a href="${base}/match/toCompApp.action">
                                                            申请大赛
                                                        </a>
                                                    </li>
                                                    <li>
                                                        <a href="${base}/match/toCompAudit.action">
                                                            审核申请表
                                                        </a>
                                              </li>
                <li>交互设计 +</li>
                 <li>摄影印象 +</li>
                 <li>技术沙龙 +</li>
                 <li>用户研究 +</li>
                 <li>视觉设计 +</li>
							                                        
                    </ul>
					
           </div>
        </div>
        
        
        <div id="news_cat">
            <div id="cat_title"><p>竞赛公告</p></div>
            <div id="cat_con">
             <marquee onmouseover=this.stop() onmouseout=this.start() 
                  		trueSpeed scrollAmount="1" scrollDelay="30" direction=down>
                <ul class="tishi">
                <#if compResultList?exists>  
							 <#list compResultList as result>
							  <li>
							  	<a href="${base}/match/showResult.action?compId=${result.compID}" title="header=[竞赛公告] body=[${result.resultTitle!}]">
                                      ${result.resultTitle?substring(0,12)}...
                                   </a></li>
							 </#list>
					 </#if>    
                
              </ul>
              </marquee>
            </div>
        </div>
    </div>
</div>
</div>
</@html.content>

<@html.bottom>
	<!--请不要在此处添加内容-->
</@html.bottom>

</body>
</html>